<div class="fui-navbar" ng-if="pagedata.pluginset.footernav.length>0">
    <a ng-repeat="item in pagedata.pluginset.footernav" href="javascript:;" ng-click="access_json(item.action)" ng-class="{'external nav-item':1,'active':show_active(item.action)}">
        <span ng-if="item.nums>0" class="badge">{{item.nums}}</span>
		<span class="icon {{item.icon || 'icon-shouye'}}"></span>
        <span class="label">{{item.title}}</span>
    </a>
</div>
<script>
if(scope.pagedata.pluginset.footernav && scope.pagedata.pluginset.footernav.length>0){	
	for(var i=0;i<scope.pagedata.pluginset.footernav.length;i++){
		var action=scope.pagedata.pluginset.footernav[i].action
		if(action.indexOf("jy_liveshop/member.cart") != -1){
			var key=i;
			scope.get('jy_liveshop/member.cart/main/',function(res){
				scope.pagedata.cartnums=res.cartnums;
				scope.pagedata.pluginset.footernav[key].nums=scope.pagedata.cartnums
			});
		}
	}
}
</script>